import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Icon, Input,Button } from 'antd';
import HeaderSearch from 'ant-design-pro/lib/HeaderSearch';
import styles from './styles.less';
const Search = Input.Search;
class FileItem extends Component {
  static propTypes = {
    icon:PropTypes.instanceOf(React.Component),
    title:PropTypes.string,
    onSearch:PropTypes.func,
  }
  render() {
    return (
        <div className="file-item" 
        >
            <div className="icon">{this.props.icon || <Icon type="file" />}</div>
            <span className="title">{this.props.title || '文件'}</span>
        </div>
      );
  }
}

export default FileItem;
